package cn.com.club.biz;

import java.sql.SQLException;
import java.util.List;

import cn.com.club.dao.BaseData;
import cn.com.club.dao.NewsDao;
import cn.com.club.entity.News;



public class NewsDaoBll extends BaseData {
	NewsDao  nn = new NewsDao();
	public boolean insertStor(News news) throws SQLException
	{
		return nn.insertStor(news);
	}
	public List<News> selectStor(int ye,int hang) throws ClassNotFoundException, SQLException  
	{		
		return nn.selectStor(ye, hang);
	}
	public News selectStor1(int id)throws ClassNotFoundException, SQLException{
		return nn.selectStor1(id);
	}
	public List<News> selectAll() throws SQLException{
		return nn.selectAll();
	}
	public boolean deleteStor(int id) throws SQLException
	{
		return nn.deleteStor(id);
	}

}
